home *** CD-ROM | disk | FTP | other *** search
/ Packard Bell - Multimedia…D & Packard Bell Library / Packard Bell Master CD.iso / bu / k / space.001 / space / space.bat < prev    next >
DOS Batch File  |  1994-05-23  |  4KB  |  131 lines

  1. @echo off
  2. rem usage: SPACE [-v] [-clean] [-p]
  3. rem The -p is only used within Windows to pause the end screen.
  4. rem If -v is given, user can hit Ctrl-PrintScreen to dump the screen to a file.
  5. rem If -clean is given, no TSRs will be loaded before running ka.
  6. C:
  7. cd C:\SPACE
  8. :checkcd
  9. existdir D:\SPACE\drivers
  10. if errorlevel 1 goto nocd
  11. goto gotcd
  12. :nocd
  13. cls
  14. echo. 
  15. echo. 
  16. echo. 
  17. echo.
  18. echo.
  19. echo                      ╔═══════════════════════════════╗
  20. echo                      ║                               ║
  21. echo                      ║ Unable to access the CD-ROM!  ║
  22. echo                      ║                               ║
  23. echo                      ╚═══════════════════════════════╝
  24. echo. 
  25. echo. 
  26. echo. 
  27. echo. 
  28. echo   Please insert the Space Aventure CD in the CD-ROM drive  
  29. echo   and press a key to continue or press [ESC] to cancel.
  30. echo. 
  31. echo. 
  32. echo. 
  33. echo. 
  34. echo. 
  35. echo. 
  36. echo. 
  37. checkesc
  38. if errorlevel 2 goto loop
  39. goto end
  40. :loop
  41. cls
  42. goto checkcd
  43. :gotcd
  44. if "%1"=="-CLEAN" goto clean
  45. if "%1"=="-clean" goto clean
  46. rem rem power.exe not detected
  47. if "%1"=="-V" goto vgacapt
  48. if "%1"=="-v" goto vgacapt
  49. moustest
  50. if errorlevel 1 goto nomouse
  51. rem no special tsrs needed
  52. rem No special sound device
  53. ka -520k D:\SPACE\kav.pgm C:\SPACE 
  54. if errorlevel 1 goto bottom
  55. rem don't clear the screen for errors...
  56. rem no special tsr cleanup needed
  57. goto end
  58. :nomouse
  59. mouse
  60. rem no special tsrs needed
  61. rem No special sound device
  62. ka -520k D:\SPACE\kav.pgm C:\SPACE 
  63. if errorlevel 1 goto bottom
  64. rem don't clear the screen for errors...
  65. rem no special tsr cleanup needed
  66. mouse /u >nul
  67. goto end
  68. :vgacapt
  69. moustest
  70. if errorlevel 1 goto vnomouse
  71. rem no special tsrs needed
  72. rem No special sound device
  73. vgacapt ka -520k D:\SPACE\kav.pgm C:\SPACE 
  74. if errorlevel 1 goto bottom
  75. rem don't clear the screen for errors...
  76. rem no special tsr cleanup needed
  77. goto end
  78. :vnomouse
  79. mouse
  80. rem no special tsrs needed
  81. rem No special sound device
  82. vgacapt ka -520k D:\SPACE\kav.pgm C:\SPACE 
  83. if errorlevel 1 goto bottom
  84. rem don't clear the screen for errors...
  85. rem no special tsr cleanup needed
  86. mouse /u >nul
  87. goto end
  88. :clean
  89. ka -520k D:\SPACE\kav.pgm C:\SPACE 
  90. if errorlevel 1 goto bottom
  91. rem don't clear the screen for errors...
  92. :end
  93. rem No special sound device cleanup
  94. karerun
  95. if errorlevel 99 goto last
  96. zzzkare.bat
  97. :endmsg
  98. echo.
  99. echo.
  100. echo.                                                     
  101. echo                            Thank you for using 
  102. echo.
  103. echo                           Space Adventure CD-ROM               
  104. echo.                                                                           
  105. echo         Try these other great new products from Knowledge Adventure!     
  106. echo.  
  107. echo. 
  108. echo                         ╔═══════════════════════════╗
  109. echo                         ║   3-D DINOSAUR ADVENTURE  ║
  110. echo                         ║   3-D BODY ADVENTURE      ║
  111. echo                         ║   AMERICA ADVENTURE       ║
  112. echo                         ║   BUG ADVENTURE           ║
  113. echo                         ║   KID'S ZOO               ║
  114. echo                         ║   IMAX DISCOVERERS        ║
  115. echo                         ║   IMAX SPEED              ║
  116. echo                         ║   SCIENCE ADVENTURE II    ║
  117. echo                         ║   UNDERSEA ADVENTURE      ║
  118. echo                         ║   ZURK'S LEARNING SAFARI  ║
  119. echo                         ╚═══════════════════════════╝
  120. echo.
  121. echo.
  122. echo                   For more information call (818) 542-4200.
  123. echo.
  124. :bottom
  125. if not "%1"=="-p" goto last
  126.     echo Press a key to return to Windows...
  127.     pause > nul
  128. :last
  129. rem go straight to command line, do not pass Go, do not collect $200.
  130. echo.
  131.